from ronglian_sms_sdk import SmsSDK

accId = '2c94811c9860a9c401996f1a9d752c1f'
accToken = 'f0d1105d8dce4475a3cc5ee19f3b8b44'
appId = '2c94811c9860a9c401996f1a9ef22c26'


def send_message(phone,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = phone
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)
    return resp


